package ntd.util.modular.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import ntd.util.config.common.entity.BaseEntityMybatis;
import ntd.util.util.metadata.NtdField;

import javax.validation.constraints.NotBlank;

@TableName("common_config")
@Data
public class Config extends BaseEntityMybatis<Config> {

    @NotBlank
    @Schema(description = "配置名称", title = "配置名称")
    private String name;
    @Schema(description = "所属机构", title = "所属机构")
    @NtdField(type = 6, oneModular = "common", twoModular = "mechanism")
    private String mechanismId;
    @Schema(description = "配置编码", title = "配置编码")
    private String code;
    @Schema(description = "配置值", title = "配置值")
    private String val;

}
